//
//  ApprenticHeadView.m
//  PPDL
//
//  Created by 王洋 on 2019/8/30.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "ApprenticHeadView.h"

@implementation ApprenticHeadView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    self.itemMainImage.layer.cornerRadius = 40.0f;
}


- (void)fillHeaderWithModel:(ApprenticeHeadModel *)model {
    
    [self.itemMainImage sd_setImageWithURL:[NSURL URLWithString:model.itemAvatar]placeholderImage:[UIImage imageNamed:@"placeholder_rect"] options:SDWebImageRetryFailed];
    
    self.itemUserName.text = [NSString stringWithFormat:@"%@",model.itemUserName];
    self.itemMasterName.text = [NSString stringWithFormat:@"师傅：%@",model.itemParentUsername];

}

@end
